package com.linzp.bishe.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.linzp.bishe.entity.Participants;
import com.linzp.bishe.entity.SoftwareCopyright;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


/**
 * @ClassName SoftwareCopyrightModel
 * @Description 在软件基础上加多一个List参与者
 * @Author LinZePeng
 * @Date 2022/1/20 10:46
 * @Version 1.0
 */
@Data
public class SoftwareCopyrightModel{

	private Integer id;

	private String copyrightName;

	private String certificateNumber;

	private String copyrightType;

	private LocalDateTime publicationDate;

	private String disciplineCategory;

	private String inputPeople;

	private String supportingMaterials;

	private String status;

	private Integer userId;


	private List<Participants> participants;

    public SoftwareCopyright getSoftwareCopyright(){
    	return new SoftwareCopyright(id,copyrightName,certificateNumber
			    ,copyrightType,publicationDate,disciplineCategory,
			    inputPeople,supportingMaterials,status,userId);
    }
}
